package org.yaac.client.conf;

import javax.inject.Inject;
import javax.inject.Provider;

import com.google.gwt.place.shared.PlaceController;
import com.google.web.bindery.event.shared.EventBus;

/**
 * @author Max Zhu (thebbsky@gmail.com)
 *
 */
public class YaacPlaceControllerProvider implements Provider<PlaceController> {

	private final EventBus eventBus;
	
	/**
	 * @param eventBus
	 */
	@Inject
	YaacPlaceControllerProvider(EventBus eventBus) {
		super();
		this.eventBus = eventBus;
	}

	@Override
	public PlaceController get() {
		return new PlaceController(eventBus);
	}
}
